const Koa = require("koa");
const bodyparser = require("koa-bodyparser");

const app = new Koa();
app.use(bodyparser());

app.use(ctx => {
  let data = ctx.request.body;
  ctx.body = data;
});

app.listen(3000, () => {
  console.log(`app is running at: http://localhost:3000`);
});
